package stock;
 
import java.text.SimpleDateFormat;
import java.time.DayOfWeek;
import java.time.LocalDate;
import java.util.Calendar;
import java.util.Date;

public class Test8 {

	public static void main(String[] args) {
		LocalDate today = LocalDate.now();

		// 判断今天是否是周六或周日
		boolean isWeekend = today.getDayOfWeek() == DayOfWeek.SATURDAY || today.getDayOfWeek() == DayOfWeek.SUNDAY;
		
		System.out.println(isWeekend);
	}
}
